//app.js111
const app = getApp();
App({
  onLaunch: function () {
    let that = this
    wx.getSystemInfo({
      success: (res) => {
        // 根据 屏幕高度 进行判断
        let screenHeight = wx.getSystemInfoSync().screenHeight
        let bottom = wx.getSystemInfoSync().safeArea.bottom
        that.globalData.isFullSucreen = screenHeight !== bottom
        that.globalData.statusBarHeight = res.statusBarHeight
      }
    })
  },
  onShow:function(options){
    const performance = wx.getPerformance()
const observer = performance.createObserver((entryList) => {
})
observer.observe({ entryTypes: ['render', 'script'] })
    this.globalData.scene = options.scene;
  },
  globalData: {
    userInfo: null,
    isFullSucreen: false, // 当前设备是否需要适配 true为需要
  },
})